/*
 *  Dir.h
 *  jscsh
 *
 *  Dir Class Methods:
 *    chdir (native)
 *    chroot (native)
 *    delete (js)
 *    getwd (js)
 *    entries (native)
 *    foreach (js)
 *    pwd (native)
 *    mkdir (native)
 *    rmdir (native)
 *    tmpdir (native)
 *    unlink (js)
 *
 *  Dir Instance Methods:
 *
 *  Created by Jonathan Hohle on 1/9/08.
 *  Copyright 2008 hohle.net. All rights reserved.
 *
 */


#include <JavaScriptCore/JavaScriptCore.h>


void Dir_extendHost(JSContextRef context, JSObjectRef contextGlobalObject);
JSValueRef Dir_s_chdir(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
JSValueRef Dir_s_chroot(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
JSValueRef Dir_s_rmdir(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
JSValueRef Dir_s_entries(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
JSValueRef Dir_s_pwd(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
JSValueRef Dir_s_mkdir(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
JSValueRef Dir_s_tmpdir(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
